Skip to main content

ResQ.Clients.InfrastructureApiClient

InfrastructureApiClient.UploadImageAsync(byte[], string, CancellationToken) Method

Uploads an image to IPFS via infrastructure-api. Uses timeout and circuit-breaker handling without replaying the upload on failure.
public System.Threading.Tasks.Task<ResQ.Clients.UploadResponse> UploadImageAsync(byte[] imageData, string fileName, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

imageData System.Byte[] fileName System.String ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<UploadResponse>